import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/components/Order/home' // 订单入口
import Index from '@/components/Order/index/index' // 订单首页
import List from '@/components/Order/list' // 订单首页
import Arctive from '@/components/Order/arctive' // 订单首页
import Fill from '@/components/Order/fill' // 订单首页
import Success from '@/components/Order/success' // 订单详细
import RaidersIndex from '@/components/Raiders/index' // 攻略首页
import ComplaintIndex from '@/components/Complaint/index' // 投诉首页
import ShowIndex from '@/components/Show/index' // 早餐首页
import BindingIndex from '@/components/Binding/index' // 绑定首页
import dpfeedback from '@/components/Feedback/dpfeedback' // 点评回复
import fzfeedback from '@/components/Feedback/fzfeedback' // 房间详细
import fillfeedback from '@/components/Feedback/fillfeedback' // 订餐详细
Vue.use(Router)
const router = new Router({
  mode: 'history',
  base: '/',
  routes: [
    {
      path: '/', // 首页
      name: 'Order',
      component: Home,
      redirect: '/index'
    },
    {
      path: '/index', // ********订单首页********
      name: 'Orderindex',
      component: Index,
    },
    {
      path: '/list', // 订单列表
      name: 'list',
      component: List,
    },
    {
      path: '/arctive', // 订单详情
      name: 'arctive',
      component: Arctive
    },
    {
      path: '/fill', // 订单填写
      name: 'fill',
      component: Fill
    },
    {
      path: '/success', // 预定成功
      name: 'success',
      component: Success
    },
    {
      path: '/Raiders', // ********攻略首页********
      name: 'Raidersindex',
      component: RaidersIndex
    },
    {
      path: '/Complaint', // ********投诉首页********
      name: 'Complaintindex',
      component: ComplaintIndex
    },
    {
      path: '/Show', // ********早餐首页********
      name: 'Showindex',
      component: ShowIndex
    },
    {
      path: '/Binding', // ********绑定首页********
      name: 'Bindingindex',
      component: BindingIndex
    },
    {
      path: '/dpfeedback', // ********点评回复********
      name: 'dpfeedback',
      component: dpfeedback
    },
    {
      path: '/fzfeedback', // ********房间详细********
      name: 'fzfeedback',
      component: fzfeedback
    },
    {
      path: '/fillfeedback', // ********订餐详细********
      name: 'fillfeedback',
      component: fillfeedback
    }
  ]
})
export default router
